import React from 'react'
import ReactDOM from 'react-dom/client'
// 样式
import 'normalize.css'
import '@/assets/css/index.less'

import App from '@/App'

// 路由
import { HashRouter } from 'react-router-dom'
// 状态管理
import { Provider } from 'react-redux'
import store from './store'
// theme
import { ThemeProvider } from 'styled-components'
import theme from './assets/theme'

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <Provider store={store}>
      <ThemeProvider theme={theme}>
        <HashRouter>
          <App />
        </HashRouter>
      </ThemeProvider>
    </Provider>
  </React.StrictMode>
)
